import base from '@/api/baseurl';
import request from '@/utils/request'

//币种下拉框
export function fetchListcurr(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/mirf/curr',
    method: 'get',
    params: query
  })
}

export function findmarketInteresRateInFo(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/mirf/find',
    method: 'get',
    params: query
  })
}

export function addmarketInteresRateInFo(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/mirf/add',
    method: 'post',
    data
  })
}

//单行删除
// export function delmarketInteresRateInFo(query) {
//   return request({
//     baseURL: base.appBaseApi,
//     url: '/mirf/del',
//     method: 'get',
//     params: query
//   })
// }
export function delmarketInteresRateInFo(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/newdelete/marketDeleteConditionService',
    method: 'get',
    params: query
  })
}

//修改
export function upmarketInteresRateInFo(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/mirf/update',
    method: 'post',
    data
  })
}

export function exportmarketInteresRateInFo(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/mirf/export',
    method: 'get',
    params: query
  })
}

export function findCv_code(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/mirf/findCv_code',
    method: 'get',
    params: query
  })
}